From: Bilal Elmoussaoui Date: Sat, 1 Jan 2022 18:11:10 +0000 (+0100) Subject: gtk: mark few GtkFileChooser functions as nullable X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~61^2^2~134^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=afeb7f668bc63701698a0cfb08d37df88b089acc;p=gtk4.git gtk: mark few GtkFileChooser functions as nullable - get_file, if no file is selected returns a NULL - get_id, if the interface doesn't implement such function returns NULL --- diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c index c472e115db..78cfdb1001 100644 --- a/gtk/gtkfilechooser.c +++ b/gtk/gtkfilechooser.c @@ -523,7 +523,7 @@ gtk_file_chooser_set_file (GtkFileChooser *chooser, * If the file chooser is in folder mode, this function returns * the selected folder. * - * Returns: (transfer full): a selected `GFile`. You own the + * Returns: (transfer full) (nullable): a selected `GFile`. You own the * returned file; use g_object_unref() to release it. */ GFile * @@ -794,7 +794,7 @@ gtk_file_chooser_set_choice (GtkFileChooser *chooser, * * Gets the currently selected option in the 'choice' with the given ID. * - * Returns: the ID of the currently selected option + * Returns: (nullable): the ID of the currently selected option */ const char * gtk_file_chooser_get_choice (GtkFileChooser *chooser,